<%@ page import="java.sql.*" %>
<%@ page import="service2.Patientquene" %>
<%@ page import="beans2.Patient" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 29748
  Date: 2023-04-27
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
  <link href="../css/new_model.css" type="text/css" rel="stylesheet">
  <script src="../js/ac2.js" type="text/javascript"></script>
  <style>
    form{
      position: relative;
      top:15%;
    }
    p{
      padding:20px;
    }
    span{
      color:red;
    }
    input[type=text]{
      padding: 5px;
      margin-bottom: 10px;
      width: 200px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    input[type=submit]{
      padding: 5px 10px;
      border-radius: 5px;
      cursor: pointer;
      background-color: #4CAF50;
      color: white;
      border: none;
      margin-right: 10px;
    }
    table{
      position: relative;
      left: 50%;
      transform: translate(-50%);
    }
    #contraner{
      position: relative;
      top:40%;
      left: 50%;
      transform: translate(-50%,-50%);
      box-shadow: 0 6px 32px -7px rgba(29,102,189,.16);
      height: 350px;
      width: 500px;
    }
    #top_lab{
      position: relative;
      background-color:  #3480fd;
      height: 6%;
      width: 100%;
      overflow: hidden;
    }
    #content{
      background-color: #f9fbff;;
    }
  </style>
</head>
<body>
<div id="menu" style="user-select:none;">
  <button class="closebtn"   onclick="closeNav()"><strong>&#9776;</strong> </button>
  <ul class="list">
    <li class="item" value="1" onclick="show(0)">
      <div class="parentNav" >
        <strong> &nbsp;叫号管理</strong>
      </div>
      <ul class="two">
        <li><a href="Callpatient.jsp">&nbsp; &nbsp;叫号管理</a></li>
        <li><a href="Add_patient.jsp">&nbsp; &nbsp;添加患者</a></li>
      </ul>
    </li>
    <li class="item" value="1" onclick="show(1)">
      <div class="parentNav" >
        <strong> &nbsp;过号处理</strong>
      </div>
      <ul class="two">
        <li><a href="Overnum.jsp">&nbsp; &nbsp; 过号处理</a></li>
      </ul>
    </li>
    <li class="item" value="1" onclick="show(2)">
      <div class="parentNav" >
        <strong>&nbsp;个人信息管理</strong>
      </div>
      <ul class="two">
        <li><a href="doc_inform.jsp">&nbsp; &nbsp;账号密码管理</a></li>
      </ul>
    </li>
  </ul>
</div>

<div id="content">
  <div id="top_lab">
    <button class="menu_button" onclick="openNav()"><strong>&#9776;</strong> </button>
  </div>
  <div id="contraner">
  <form align="center" action="AddPatient" method="get">
    <table >
      <tr>
        <td><span>*</span>排队号码:</td>

        <td><input type="text" name="number" id="queueNumber" value="<%=new Patientquene().getAllRecord((String)session.getAttribute("id")).size()+1%>" placeholder="<%=new Patientquene().getAllRecord((String)session.getAttribute("id")).size()+1%>"></td>
      </tr>
      <tr>
        <td><span>*</span>患者姓名:</td>
        <td><input type="text" name="name" id="patientName" placeholder="请输入患者姓名" required></td>
      </tr>
      <tr>
        <td><span>*</span>患者账号:</td>
        <td><input type="text" name="id" placeholder="请输入患者账号" required></td>
      </tr>
    </table>
    <input id="addper" type="submit" value="添加患者" >
  </form>
  </div>
</div>

</body>
</html>
